package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

import javax.servlet.http.HttpServletRequest;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

/*
 * @Description  新增员工
 * @Param [employeeDTO]
 * @return void
 **/
    void save(EmployeeDTO employeeDTO);

    /*
     * @Description  分页查询
     * @Param [pageQueryDTO]
     * @return com.sky.result.PageResult
     **/
    PageResult pageQuery(EmployeePageQueryDTO pageQueryDTO);

    /*
     * @Description  修改状态
     * @Param [status, id]
     * @return void
     **/
    void startOrStop(Integer status, Long id);

    /*
     * @Description  根据id查询员工
     * @Param [id]
     * @return com.sky.entity.Employee
     **/
    Employee getOne(Long id);

    /*
     * @Description  修改员工信息
     * @Param [employeeDTO]
     * @return void
     **/
    void update(EmployeeDTO employeeDTO);


    void updatePassword(PasswordEditDTO passwordEditDTO, HttpServletRequest request);
}
